import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'

import Playing from './views/Playing'
//import Comming from './views/Comming'


Vue.use(Router)

export default new Router({
//mode: 'history',
//base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
      children:[
//    {path:'/',redirect:"/home"},
            {
            	path:"playing",component:Playing
//          	
            },
//          {path:"comming",component:Comming},
//          {path:"",redirect:"playing"}
      ]
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import(/* webpackChunkName: "about" */ './views/About.vue')
    },
     {
      path: '/movie',
      name: 'movie',
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import(/* webpackChunkName: "about" */ './views/movie.vue')
    },
    {
    	path:'/shows',
    	name:'shows',
    	component:() => import('./views/shows.vue')
    },
    {
    	path:'/shows',
    	name:'shows',
    	component:() => import('./views/shows.vue')
    },
     {
    	path:'/comm',
    	name:'comm',
    	component:() => import('./views/Comm.vue')
    },
    {
    	path:'/city',
    	name:'city',
    	component:() => import('./views/city.vue')
    },
  ]
})
